﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Task_Edit.aspx.cs" Inherits="Vehicle.Web.Pages.Task.Task_Edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>物流管理系统</title>
    <link href="../../Style/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="17" valign="top" background="../../Images/mail_leftbg.gif"><img src="../../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../Images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">承运管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../images/mail_rightbg.gif"><img src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="../../images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="left_txt">当前位置：承运管理--<a href="../Cargo/Accept.aspx">承运单开出</a> --<a href="Cargo_Task.aspx?id=<%=url %>">分配任务</a>--修改任务单</td>
          </tr>
          <tr>
            <td height="20"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="10%" height="55" valign="middle"><img src="../../images/user-info.gif" width="54" height="55"></td>
                <td width="90%" valign="top"><span class="left_txt2">在这里，您可以根据您的业务要求，选择已承接的任务单进行修改！</span>
                <br />
                <span class="left_txt3">如要删除该任务请先把状态改为已取消或已完成,车队与车辆一经添加将不能进行修改！</span>
                </td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
              <tr>
                <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;任务单信息填写</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                 <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">任务添加时间：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_T_Time" runat="server" Enabled="false"></asp:TextBox></td>
                <td width="45%" height="30"  class="left_txt">添加任务的时间</td>
              </tr> 
			  <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车队：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                    <asp:DropDownList ID="drop_M_ID" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="drop_M_ID_SelectedIndexChanged" Enabled="false" >
                    </asp:DropDownList>
                </td>
                <td width="45%" height="30"  class="left_txt">承运该任务的车队不能修改</td>
              </tr>
              <tr>
                <td height="30" align="right" class="left_txt2">车辆车牌号：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2"><asp:DropDownList ID="drop_V_ID" runat="server" 
                        AutoPostBack="True" onselectedindexchanged="drop_P_ID_SelectedIndexChanged" Enabled="false" >
                    </asp:DropDownList>
                </td>
                <td height="30" class="left_txt">承运任务的车辆不能修改</td>
              </tr>
               <tr>
                <td height="30" align="right" class="left_txt2">驾驶员：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2">
                    <asp:TextBox ID="txt_P_ID" runat="server" Enabled="false" Width="64px"></asp:TextBox><asp:Label
                        ID="lab_P_ID" runat="server" Text="当前车辆没有驾驶员请重选" ForeColor="Red"  Visible="false"></asp:Label>
                        <asp:RequiredFieldValidator ID="RFV_P_ID" runat="server" ErrorMessage="--不能为空!" ControlToValidate="txt_P_ID" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <td height="30" class="left_txt">根据车辆自动绑定出该车辆驾驶员</td>
              </tr>
                <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">任务单编号：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_C_Num" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_C_Num" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_C_Num" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator><asp:RequiredFieldValidator ID="RFV_C_Num" runat="server" ErrorMessage="不能为空!" ControlToValidate="txt_C_Num" Display="Dynamic"></asp:RequiredFieldValidator></td>
                <td width="45%" height="30"  class="left_txt">按需求进行任务单编号（不能为空)</td>
              </tr> 
              <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">承运单编号：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_C_Card" runat="server" Enabled="false"></asp:TextBox></td>
                <td width="45%" height="30"  class="left_txt">车辆所进行任务的承运单编号</td>
              </tr>
                 <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">发车时间：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                 <cc1:GMDatePicker ID="Gmdp_T_StarTime" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null" CalendarWidth="200px" EnableViewState="False" 
                        DisplayMode="Label">
                    </cc1:GMDatePicker></td>
                <td width="45%" height="30"  class="left_txt">承运任务所进行的发车时间</td>
              </tr>   
                <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">到达时间：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                 <cc1:GMDatePicker ID="Gmdp_T_EndTime" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null" CalendarWidth="200px" EnableViewState="False" 
                        DisplayMode="Label">
                    </cc1:GMDatePicker></td>
                <td width="45%" height="30"  class="left_txt">承运任务执行结束的时间</td>
              </tr>   
               <tr>
                <td height="30" align="right" class="left_txt2">任务状态：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2"><asp:DropDownList ID="drop_T_Type" runat="server" >
                <asp:ListItem Text="执行中" Value="1"></asp:ListItem>
                <asp:ListItem Text="已完成" Value="2"></asp:ListItem>
                 <asp:ListItem Text="已取消" Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td height="30" class="left_txt">任务执行的当前状态,如无特殊需要请务修改!</td>
              </tr>
              <tr>
                <td height="30" align="right"  class="left_txt2">任务备注：</td>
                <td >&nbsp;</td>
                <td height="30" >
                    <asp:TextBox ID="txt_V_Note" runat="server" TextMode="MultiLine" Height="135px" 
                        Width="230px"></asp:TextBox></td>
                <td height="30"  class="left_txt">执行任务的备注信息</td> <asp:HiddenField ID="hf_P_ID" runat="server" />
              </tr>
                </table>
		</td>
              </tr>
        </table></ContentTemplate>
                </asp:UpdatePanel>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">     
            <tr>
              <td height="30" colspan="3" align="center" class="left_txt4"><div visible="false" runat="server" id="d_Show" ><a href="#" onclick="javascript:window.location.href = window.location.href;">车队信息已经修改是否需要刷新数据?单击添加执行当前编辑!(点击刷新)</a></div></td>
            </tr>
            <tr>
              <td width="50%" height="30" align="right"><asp:Button ID="btn_Add" runat="server" 
                      Text="修改" onclick="btn_Add_Click" /></td>
              <td width="6%" height="30" align="right">&nbsp;<asp:HiddenField ID="hf_Set" runat="server" Value="1" />
                  <asp:HiddenField ID="hf_T_LastTime" runat="server" /><asp:HiddenField ID="hf_T_Num" runat="server" />
               
              </td>
                <td width="44%" height="30"><input type="reset" value="重置" name="B12" /></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
    <td background="../../images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="../../images/mail_leftbg.gif"><img src="../../images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="../../images/buttom_bgs.gif"><img src="../../images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="../../images/mail_rightbg.gif"><img src="../../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
    </form>
</body>
</html>